<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<script type="text/javascript">

    $(function () {
        var entityManagement = new EntityManagement();
        entityManagement.entityName = "角色";
        entityManagement.entityPath = "/auth/role";
        entityManagement.entityTable = "management";
        $("#" + entityManagement.entityTable).flexigrid({
            url:'list.action',
            dataType:'json',
            colModel:[
                {display:'ID', name:'id', width:100, sortable:true, align:'center', hide:false},
                {display:'名称', name:'name', width:200, sortable:true, align:'center'},
                {display:'授权', name:'description', width:400, sortable:true, align:'left'}
            ],
            buttons:[
                {name:'新增', bclass:'add', onpress:entityManagement.add},
                {separator:true},
                {name:'修改', bclass:'edit', onpress:entityManagement.edit},
                {separator:true}
                /*,
                {name:'删除', bclass:'delete', onpress:entityManagement.confirmDel},
                {separator:true} */
            ],
            searchitems:[
                {display:'名称', name:'filter_EQS_name', isdefault:true}
            ]
        });

    });
</script>